import request from "@/utils/request";

export const queryUserList = (page, size, params)=>{
    return request.get(
        `api/sys/user/${page}/${size}/list`,
        params,
    )
}

export const addUser = (params) =>{
    return request.post(
        `api/sys/user/add`,
        params,
    )
}

export const updateUser = (params) =>{
    return request.put(
        `api/sys/user/update`,
        params,
    )
}
export const getUserVo = (id)=>{
    return request.get(
        `api/sys/user/${id}/info`
    )
}